longest(a, n)